local Servername = "Gameweb - Server #1"
function Register(ply,cmd,args)
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( (ScrW()/2) - 100,(ScrH()/2) - 85 )
DermaPanel:SetSize( 200, 170 )
DermaPanel:SetTitle( "Register" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false )
DermaPanel:ShowCloseButton( false )
DermaPanel:MakePopup()
		
		local myLabel= vgui.Create("DLabel", Name)
		myLabel:SetParent( DermaPanel )
		myLabel:SetPos(5,80)
		myLabel:SetText("Username:")
		myLabel:SizeToContents()
		local myLabel2= vgui.Create("DLabel", Pass)
		myLabel2:SetParent( DermaPanel )
		myLabel2:SetPos(5,105)
		myLabel2:SetText("Password:")
		myLabel2:SizeToContents()
		local myLabel3= vgui.Create("DLabel", Pass)
		myLabel3:SetParent( DermaPanel )
		myLabel3:SetPos(5,30)
		myLabel3:SetText("Welcome to ".. Servername .."\nEnter the Username and Password\nyou want to use!")
		myLabel3:SizeToContents()
		
local Name = vgui.Create( "DTextEntry", DermaPanel )
Name:SetParent( DermaPanel )
Name:SetPos( 60,80 )
Name:SetTall( 20 )
Name:SetWide( 130 )
--Name:GetValue()
 
local Pass = vgui.Create( "DTextEntry", DermaPanel )
Pass:SetParent( DermaPanel )
Pass:SetPos( 60,105)
Pass:SetTall( 20 )
Pass:SetWide( 130 )
--Pass:GetValue()

local DermaButton = vgui.Create( "DButton" )
DermaButton:SetParent( DermaPanel ) -- Set parent to our "DermaPanel"
DermaButton:SetText( "Register" )
DermaButton:SetPos( 50, 130 )
DermaButton:SetSize( 100, 30 )
DermaButton.DoClick = function ()
DermaButton.DoClick = function()
	local name,pass = Name:GetValue(), Pass:GetValue()
	if name != "" and pass != "" then 
		RunConsoleCommand("adduserdb", Name:GetValue(), Pass:GetValue(),"fgfdghfgkuilu")
		DermaPanel:Close()
	end
end
end
end
concommand.Add("register", Register)

if CLIENT then
function HelpMenu()
 Help = vgui.Create( "DFrame" ) 
 Help:SetPos( (ScrW() / 2) - 250, (ScrH() / 2) - 250) --Set the window in the middle of the players screen/game window 
 Help:SetSize( 500, 500 ) --Set the size 
 Help:SetTitle( "F1 - Menu" ) --Set title 
 Help:SetVisible( true ) 
 Help:SetDraggable( false ) 
 Help:ShowCloseButton( true ) 
 Help:MakePopup() 
	 local PropertySheet = vgui.Create( "DPropertySheet" )
	PropertySheet:SetParent( Help )
	PropertySheet:SetPos( 5, 30 )
	PropertySheet:SetSize( 490, 465 )

	local text = {}
	text[1] = ( "Welcome to ".. Servername .." have fun!" )
	text[2] = ( "\n\n" )
	text[3] = ( "Rules:\n\n" )
	text[4] = ( "No Racism\n" )
	text[5] = ( "No Cussing\n" )
	text[6] = ( "No Spam (Mic, Chat, Etc)\n" )
	text[7] = ( "No Spawn Killing\n" )
	text[8] = ( "Play Fair\n" )
	text[9] = ( "\n" )
	text[10] = ( "Obey Superiors\n\n" )
	text[11] = ( "If these rules aren't implied, you will be punished.\n\n" )
	text[12] = ( "Credits to:\n" )
	text[13] = ( "Entoros - Help with Lua problems\n" )
	text[14] = ( "MakeR - Thanks a ton - Lua\n" )
	text[15] = ( "darksoul - Help with Lua problems and making default map\n" )
	text[16] = ( "fishface60 - Help with Lua problems\n")
	text[17] = ( "Yuriman - Maker of the admin mod")
	text[18] = ( "Grea$emonkey - Thanks a ton- Lua" )
	text[19] = ( "\n\n\n" )
	text[20] = ( "If you find any bug, glitch or just want to add a feture\n" )
	text[21] = ( "Pm Yuriman on FP(Facepunch)\n" )
	text[22] = ( "http://www.facepunch.com/member.php?u=194057" )
	local Chat ={}
	Chat[1] = ("Players:\n\n")
	Chat[2] = ("/kd\n")
	Chat[3] = ("VIPS:\n\n")
	Chat[4] = ("/hp <player> <amount>\n")
	Chat[5] = ("/armor <player> <amount>\n")
	Chat[6] = ("Admins:\n\n")
	Chat[7] = ("/kick <player>\n")
	Chat[8] = ("/ban <player> <time> <reason>\n")
	Chat[9] = ("/removeban <SteamID>\n")
	Chat[10] = ("/kill <player>\n")
	Chat[11] = ("/god <player>\n")
	Chat[12] = ("/ungod <player>\n")
	Chat[13] = ("/runcheck\n")
	Chat[14] = ("/give <player> <weapon>\n")
	Chat[15] = ("/changelevel <map>\n")
	Chat[16] = ("Owner:\n\n")
	Chat[17] = ("/addadmin <player>\n")
	Chat[18] = ("/removeadmin <player>\n")
	Chat[19] = ("/addvip <player>\n")
	Chat[20] = ("/rcon <command> <args>\n")
	local panel1 = vgui.Create( "DPanel" );
	local panel2 = vgui.Create( "DPanel" );
	local myLabel= vgui.Create("DLabel",panel1)
		myLabel:SetPos(5, 5)
		myLabel:SetText(table.concat(text))
		myLabel:SetColor(Color(0,0,0,255))
		myLabel:SizeToContents()
	local ChatCom = vgui.Create("DLabel",panel2)
		ChatCom:SetPos(5, 5)
		ChatCom:SetText(table.concat(Chat))
		ChatCom:SetColor(Color(0,0,0,255))
		ChatCom:SizeToContents()
	
	local panel = vgui.Create( "DPanel" );
	local DermaListView = vgui.Create("DListView",panel)
	DermaListView:SetPos(5, 0)
	DermaListView:SetSize(470, 300)
	DermaListView:SetMultiSelect(false)
	DermaListView:AddColumn("Name") -- Add column
	DermaListView:AddColumn("SteamID")
	local List = player.GetAll()
	for k,v in pairs(List) do
		DermaListView:AddLine(v:Nick(),v:SteamID()) -- Add lines
	end
	
	local Reason = vgui.Create("DLabel", panel)
	Reason:SetText("Reason:")
	Reason:SetPos(5,300)
	Reason:SetColor(Color(0,0,0,255))
	
	local DermaText = vgui.Create( "DTextEntry",panel )
	DermaText:SetPos(5, 317)
	DermaText:SetTall( 20 )
	DermaText:SetWide( 470 )
	local button = vgui.Create( "DButton", panel );
	button:SetSize( 100, 30 )
	button:SetPos( 200, 350 )
	button:SetText( "Send Ban Request" )
	button.DoClick = function( button )
		local Selected = DermaListView:GetSelectedLine( )
		local Player = List[Selected]
		if Selected != 0 then
		if DermaText:GetValue() != "" and Player:Nick() != LocalPlayer( ):Nick() then
		RunConsoleCommand("banrequest",Player:Nick(),DermaText:GetValue(),Player:SteamID())
		Help:Close()
		end
		end
	end
	PropertySheet:AddSheet( "About/Rules", panel1, "gui/silkicons/user", false, false, "About Admin Addon And Rules" ) 	
	PropertySheet:AddSheet( "Chat Commands", panel2, "gui/silkicons/group", false, false, "Chat Commands" )
	PropertySheet:AddSheet( "Ban Request", panel, "gui/silkicons/shield", false, false, "Ban Request" )
end
concommand.Add( "help_menu", HelpMenu )
end